Post

Replies

Boosts

Views

Activity

Reply to Symbolicating Crash Reports for Mac Catalyst App
I'm seeing the same issue with Xcode 16.1 on macOS Sequoia 15.1 when building my Catalyst app. I found this StackOverflow comment saying if you change the Debug Information Format build setting away from and back to its default, "DWARF with dSYM file", the setting value becomes explicit in the project file and Xcode is forced to generate the dSYM for the main app target. This seems to work for me.
Oct ’24
Reply to Unable to Disable/Hide Writing Tools in iOS 18
I was able to work around this issue with NSInvocation in Objective-C: WKWebViewConfiguration *config = [[WKWebViewConfiguration alloc] init]; SEL selector = @selector(setWritingToolsBehavior:); NSMethodSignature *sig = [config methodSignatureForSelector:selector]; NSInvocation *invocation = [NSInvocation invocationWithMethodSignature:sig]; [invocation setSelector:selector]; [invocation setTarget:config]; NSInteger arg = (NSInteger)UIWritingToolsBehaviorNone; [invocation setArgument:&arg atIndex:2]; [invocation invoke]; This works to set the writingToolsBehavior to none, and I don't get the Writing Tools option in my popup when selecting text in my WKWebView.
Oct ’24
Reply to How can I make NSToolbar on Catalyst check canPerformAction on UISplitViewController's secondary view controller instead of primary?
I've filed this as FB13888167, as requested in a WWDC 2024 lab. I was given a couple of workarounds, but they aren't working super well for me yet: Put the action validation and routing further up the responder chain, like the scene delegate. But even if my scene delegate inherits from UIResponder, it's not automatically in the responder chain. Even with tricks to insert it in the chain, I can't (yet) get it to work. Set an explicit target on the toolbar items. But I have menu items too, and the menu items might be handled by different floating windows in my app, and I'd rather not have to re-set the targets on all those menu items every time the active window changes.
Sep ’24